var mongoose = require('mongoose');
var Schema = mongoose.Schema;

//Create Leadership's Schema
var leadshipSchema = new Schema({
    name: {
        type: String,
        required: true
    },
    image: {
        type: String,
        required: true
    },
    designation: {
        type: String,
        required: true
    },
    abbr: {
        type: String,
        required: false,
    },
    description: {
        type: String,
        required: true
    }
}, {
    timestamps: true
});

// the schema is useless so far, we need to create a model using it
var Leadership = mongoose.model('Leadership', leadshipSchema);

// make this available to our Node applications
module.exports = Leadership;